package com.hq.service;

import com.hq.bean.User;
import com.hq.dao.UserDAO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class UserServiceImpl implements  UserService {
    @Resource
    private UserDAO userDAO;
    @Override
    public List<User> list() {
        return userDAO.list();
    }

    @Override
    public int del(Integer id) {
        return userDAO.del(id);
    }
}
